﻿import {findAll} from '../../../api/Promotion/Returned'


let brand = {
    data() {
        return {
            ReturnedInfo:{
                marketingName:"",
                marketingDate:"",
                approvalStatus:"",
                rewardWay:"",
                // Applicant:"",
                // MarketingDate:"",
                // Status:"",
                current:1,
                size:8,
            },

            marketingName: '',
            time: '',
            audit: "",
            getWay: "",

            pageDate: [], //分页数据内容
            totalPage: 0,  //总页数

        };
    },
    methods: {
        findPage() { //查询所有
            findAll(this.ReturnedInfo).then(response => {
                    this.totalPage = response.total;
                    this.pageDate = response.data;
                }
            );
        },
        reset() { //复位重置
            this.ReturnedInfo.marketingName = "";
            this.ReturnedInfo.marketingDate = "";
            this.ReturnedInfo.approvalStatus = "";
            this.ReturnedInfo.rewardWay = "";
        },
        pagefind(aaa){ //分页查询
            this.ReturnedInfo.current=aaa;
            this.findPage()
        },
        addReturned() {  //添加单子
            this.$router.push({
                path: '/ReturnedApply',
            })
        },


    },
    created() { //钩子函数，默认加载
        this.findPage();
    }
};

export default brand;

